<template>
  <div id="app">
      <router-view/>
    <Toolbar route v-if="!(path ==='/' || path === '/login')"></Toolbar>
  </div>
</template>

<script>
import Toolbar from "./components/Toolbar";
export default {
  name: 'app',
  data(){
    return{
      path:''
    }
  },
  components: {
    Toolbar
  },
  // 判断路由
  mounted() {
    this.path = this.$route.path;
    // console.log(this.$route.path)
  },
  watch:{
    $route(to,from){
      this.path = to.path
    }
  }
}
</script>

<style>
  #app{
    font-family: SYHT;
  }


</style>
